package com.job.updateinfojob.service.impl;


import com.job.updateinfojob.entity.DisksInfoEntity;
import com.job.updateinfojob.mapper.DisksinfoMapper;
import com.job.updateinfojob.service.IDisksInfoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * TODO
 *
 * @Description
 * @Author Lx
 * @Date 2024/8/23 上午10:31
 **/
@Service
public class DisksInfoServiceImpl implements IDisksInfoService {

    @Resource
    DisksinfoMapper disksInfoMapper;
    @Override
    public int insert(List<DisksInfoEntity> disksInfoEntityList) {
        int cnt=0;
        for (DisksInfoEntity disksInfoEntity : disksInfoEntityList) {
            System.out.println("插入一条");
            cnt+=disksInfoMapper.insert(disksInfoEntity);
            System.out.println("插入一条成功");

        }
        return cnt;
    }
}
